<?php

/**
 * Post object - represents a post in a thread.
 * @author Greg Smith <greg@gregdev.net>
 *
 */
class Post {
	private $post_id;
	private $post_thread;
	private $post_author;
	private $post_time;
	private $post_content;
	private $post_is_deleted;
	
	/**
	 * Setter for the post ID
	 * @param int $post_id
	 */
	public function setPostId($post_id) {
		$this->post_id = $post_id;
	}
	
	/**
	 * Inserts a new post into the database.
	 * @param int $post_thread
	 * @param int $post_author
	 * @param string $post_content
	 * @return $post_id
	 */
	public function createPost($post_thread, $post_author, $post_content) {
		return null;
	}
	
	/**
	 * Edits the content of a post.
	 * @param string $new_content
	 * @param int $edited_by
	 */
	public function editPost($new_content, $edited_by) {
		
	}
	
	/**
	 * Marks a post as deleted.
	 * @param int $deleted_by
	 * @param string $delete_reason
	 */
	public function deletePost($deleted_by, $deleted_reason) {
		
	}
}